Ext.define('MvcDemo.view.user.Login', {
    alternateClassName:'userLoginView',
    xtype:'userLoginView',
    extend:'Ext.form.Panel',
    requires: ['Ext.field.Toggle', 'Ext.form.FieldSet', 'Ext.field.Password', 'Ext.Panel'],
    config:{
        title:'用户登录',
        scrollable: {
            direction: 'vertical',
            directionLock: true,
            indicators: false
        },
        items:[
            {
                xtype:'fieldset',
                iconCls: 'home',
                defaults: {
                    labelWidth: '40%'
                },
                items:[
                    {
                    xtype: 'textfield',
                    name: 'Account',
                    value: '',
                    placeHolder: '请输入用户名'
                    },
                    {
                        xtype: 'passwordfield',
                        name: 'PassWord',
                        value: '',
                        placeHolder: '请输入密码'
                    },
                    {
                        xtype:'button',
                        action:'btnLogin',
                        text:'登录',
                        ui: 'action'
                    }
                ]
            }
        ]
    }
});